package com.zyy;

/**
 * @author zyy
 * @date 2021/5/11 下午3:51
 * @description
 */
/**
 * @author yinglala
 */
public class BinaryTree {
    private int data;
    private BinaryTree lchild;
    private BinaryTree rchild;

    public BinaryTree(int data) {
        this.data = data;
    }


    public int getData() {
        return data;
    }

    public void setData(int data) {
        this.data = data;
    }

    public BinaryTree getLchild() {
        return lchild;
    }

    public void setLchild(BinaryTree lchild) {
        this.lchild = lchild;
    }

    public BinaryTree getRchild() {
        return rchild;
    }

    public void setRchild(BinaryTree rchild) {
        this.rchild = rchild;
    }
}
